From a3dd32eba6c21d027e08189fb8b082ea3011ef39 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Tue, 21 May 2024 00:07:18 -0700
Subject: feat(badges): display number of shadow hidden

---
 src/routes/user/[user]/badges/+page.svelte | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/routes/user/[user]/badges/+page.svelte')

diff --git a/src/routes/user/[user]/badges/+page.svelte b/src/routes/user/[user]/badges/+page.svelte
index f955240c..b47e572f 100644
--- a/src/routes/user/[user]/badges/+page.svelte
+++ b/src/routes/user/[user]/badges/+page.svelte
@@ -512,13 +512,15 @@
 							)}
 
 							{#if isOwner || authorised}
+							{@const shadowHiddenCount =
+								ungroupedBadges.filter((badge) => badge.shadow_hidden).length}
 								{@const shadowHidden =
-									ungroupedBadges.filter((badge) => badge.shadow_hidden).length > 0}
+									shadowHiddenCount > 0}
 
 								{#if shadowHidden}
 									<div class="card">
 										<b>Notice:</b> The Badge Wall overseer has detected badges containing
-										AI-generated material, and your Badge Wall has been shadow hidden.
+										AI-generated material. {shadowHiddenCount} of your badges have been shadow hidden.
 										<p />
 										Please use "Un-shadow Hide Badges" button to unhide your Badge Wall, from where you
 										will be required to use the hide feature to hide these badges from the public, while
-- 
cgit v1.2.3

